<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/ExportBusiness/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>采购排产及计划统计</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <form class="layui-form layui-from-pane" action="" id="editor-form" lay-filter="editor-form">
                            <div class="layui-inline">
                                <label class="layui-form-label">单据类型</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="status" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">下单人</label><%--采购单操作人--%>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="operationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门下单人</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptOperationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">发货日期</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deliveryDateTypeStr" class="xm-select-demo"></div>
                                </div>
                            </div>

                            <div class="layui-inline daterange">
                                <label class="layui-form-label">下单日期</label><%--采购单签约日期--%>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="signingDateStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="signingDateEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">采购单号</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="purchaseNo" autocomplete="off" placeholder="">
                                </div>
                            </div>


                            <div class="layui-inline">
                                <label class="layui-form-label">PO NO.</label><%--外销合同号--%>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="contractNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">产品编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="productNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">规格编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="specNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">订单数量</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="amount" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">已交货数量</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="planAmount" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">未交货数量</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="unPlanAmount" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">客户简称</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="abbreviation" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">要求交货期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="requestDeliveryDateStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="requestDeliveryDateEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">备注</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="description" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label" style="width: 140px">供应商反馈交期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="feedbackDeliveryDateStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="feedbackDeliveryDateEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label" style="width: 140px">实际交期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="actualDeliveryDateStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="actualDeliveryDateEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">采购类型</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="productType" class="xm-select-demo"></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">供应商名称</label>
                                <div class="layui-input-inline">
                                    <div class="layui-input-inline xlk">
                                        <select lay-search name="supplierCode" id="supplierCode">
                                            <option value=""></option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label" style="width: 120px">客户所属业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="salesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptSalesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submitform" style="margin-left: 10px">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear">重置</button>
                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="exportData" style="margin-left: 10px">导出Excel</button>
                        </form>
                        <table class="layui-table" id="purchase2Select" lay-filter="purchase2Table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="purchase2Toolbar">
</script>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/ExportBusiness/tpl/purchaseStatistics2.js"></script>